import request from '@/utils/request'

export function login(data) {
  return request('apiman/login_rbac/DoLogin', data)
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: {
      token
    }
  })
}

export function logout() {
  // return request('apiman/login/dologout')
  return request('apiman/login_rbac/DoLogout')
  
}
// return request('apiman/login/dologin', data)
